package com.my.demo.pojo;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import java.util.Date;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

/**
 * @author liangyuanshao
 * @date 2021/12/21 - 19:38
 */
@Data
@AllArgsConstructor
@NoArgsConstructor
@TableName("notice")
public class Notice {

  @TableId(value = "notice_index", type = IdType.AUTO)
  private Integer noticeIndex;
  private String noticeContent;
  private Date noticeTime;
  private Integer noticeReceiver;
  private String noticeState;


  public Notice(String noticeContent, Integer noticeReceiver) {
    this.noticeContent = noticeContent;
    this.noticeReceiver = noticeReceiver;
    this.noticeTime = new Date(System.currentTimeMillis());
    this.noticeState="0";
  }
}
